package day15;

/**
 * 经理类
 * 每月按固定工资支付
 */
public class Manager extends Employee {
    // 固定工资
    private double fixedSalary;
    
    /**
     * 构造方法
     * @param name 员工姓名
     * @param gender 员工性别
     * @param birthDate 员工出生日期
     * @param fixedSalary 固定工资
     */
    public Manager(String name, String gender, String birthDate, double fixedSalary) {
        super(name, gender, birthDate, "经理");
        this.fixedSalary = fixedSalary;
    }
    
    /**
     * 计算经理工资
     */
    @Override
    public void computeSalary() {
        System.out.println("经理 " + name + " 本月工资为 " + fixedSalary + " 元。");
    }
    
    // fixedSalary的getter和setter方法
    public double getFixedSalary() {
        return fixedSalary;
    }
    
    public void setFixedSalary(double fixedSalary) {
        this.fixedSalary = fixedSalary;
    }
}